import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import useAppRouter from "./hooks/useAppRouter";
import useAppQuery from "./hooks/useAppQuery";

function App() {
  const { AppRouterProvider } = useAppRouter();
  const { AppQueryProvider } = useAppQuery();

  return (
    <ConfigProvider locale={zhCN}>
      <AppQueryProvider>
        <AppRouterProvider></AppRouterProvider>
      </AppQueryProvider>
    </ConfigProvider>
  );
}

export default App;
